/**
 * Created by Quanta on 2017/5/23.
 */
import React from "react";
import ReactDOM from "react-dom";
import date from "./date";
import Navbar from "react-bootstrap/lib/Navbar";

var week = ['一','二','三','四','五','六','日'];
class Header extends React.Component{
    render() {
        return (
            <Navbar>
                <Navbar.Header>
                    <Navbar.Brand>
                        <a href="#">孙大圣的个人网站</a>
                    </Navbar.Brand>
                    <Navbar.Toggle />
                </Navbar.Header>
                <Navbar.Collapse>
                    <Navbar.Text>
                        Have a great day!
                    </Navbar.Text>
                    <Navbar.Text pullRight>
                        今天是{date.getToday()}，星期{week[new Date().getDay()-1]}&nbsp;&nbsp;
                    </Navbar.Text>
                </Navbar.Collapse>
            </Navbar>
        );
    }
};
export default Header;